package com.cqndt.disaster.device.domain;

import lombok.Data;
import java.util.Date;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.EqualsAndHashCode;
import java.text.SimpleDateFormat;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@Data
@TableName("tab_basic")
@EqualsAndHashCode(callSuper=false)
public class TabBasic implements Serializable{
   
	private static final long serialVersionUID = 4554779034542739119L;
	@TableId
	private Integer id;

    private String disNo;

    private String name;

    private String areaCode;

    private String address;

    private String disType;

    private String disasterName;

    private BigDecimal longitude;

    private BigDecimal latitude;

    private Long elevation;

    private String dangerLevel;

    private String disasterLevel;

    private String stability;

    private String scale;

    private Date happenTime;

    public String getHappenTimeStr(){
        if(null == getHappenTime()){
            return null;
        }
        SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
        String dateString = formatter.format(getHappenTime());
        return dateString;
    }

    private BigDecimal threatenPeople;

    private BigDecimal threatenAssets;

    private BigDecimal deadPeople;

    private String directLoss;

    private Integer threatenHousehold;

    private BigDecimal threatenArea;

    private String threatenOther;

    private Long backElevation;

    private BigDecimal area;

    private BigDecimal volume;

    private String dangerLevelName;

    private String disasterLevelName;

    private String stabilityName;

    private String scaleName;

}